package com.hqd.ch03.v50.beans.factory.config;

import com.hqd.ch03.v50.beans.BeansException;
import com.hqd.ch03.v50.config.BeanPostProcessor;

public interface DestructionAwareBeanPostProcessor extends BeanPostProcessor {

    void postProcessBeforeDestruction(Object bean, String beanName) throws BeansException;

    default boolean requiresDestruction(Object bean) {
        return true;
    }

}
